package dao;

import bean.Dept;

import java.util.List;

public interface DeptDao {
    public int update(Integer deptno,Dept dept);
    public int updateDname(Integer deptno,String name);
    public int delete(Dept dept);
    public int deleteByDeptno(Integer deptno);
    public int deleteByDname(String name);
    public int insert(Dept dept);
    public Dept select(Dept dept);
    public Dept selectByDeptno(Integer deptno);
    public Dept selectByDname(String ename);
    public List<Dept> selectAll();
}
